import request from '@/utils/request'

// 查询盖章列表
export function listGaizhangCertificate(query) {
  return request({
    url: '/exam/gaizhangCertificate/list',
    method: 'get',
    params: query
  })
}

// 查询盖章详细
export function getGaizhangCertificate(id) {
  return request({
    url: '/exam/gaizhangCertificate/' + id,
    method: 'get'
  })
}

// 新增盖章
export function addGaizhangCertificate(data) {
  return request({
    url: '/exam/gaizhangCertificate',
    method: 'post',
    data: data
  })
}

//提交盖章生成制证申请表
export function updateGaizhangCertificate(certificateId) {
  return request({
    url: '/exam/gaizhangCertificate/updateGaizhangCertificate/' + certificateId,
    method: 'get',
  })
}

// 删除盖章
export function delGaizhangCertificate(id) {
  return request({
    url: '/exam/gaizhangCertificate/' + id,
    method: 'delete'
  })
}